package com.example.rwq_test.designParttern.multiThread.guarded.suspension;

/**
 * 等我准备好
 *
 * @author renweiqiang
 * @version 1.0.0
 * @createTime 2022/8/12
 */
public class Main {
    public static void main(String[] args) {
        RequestQueue requestQueue1 = new RequestQueue();
        RequestQueue requestQueue2 = new RequestQueue();
        new TalkThread(requestQueue1, requestQueue2, "Alice").start();
        new TalkThread(requestQueue2, requestQueue1, "Sum").start();
    }
}
